package com.zkq.graduate.service.impl;

import com.google.common.collect.Lists;
import com.zkq.graduate.mapper.UniversityMapper;
import com.zkq.graduate.pojo.University;
import com.zkq.graduate.service.UniversityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author zhangkaiqiang
 * @Date 2020/1/3  16:55
 * @Description TODO
 */
@Service(value = "universityService")
public class UniversityServiceImpl implements UniversityService {

	@Resource
	private UniversityMapper universityMapper;

	@Override
	public List<University> findAll() {
		List<University> universityList=universityMapper.findAll();
		return universityList!=null?universityList: Lists.newArrayList();
	}
}
